/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-11-16
 * Time:10:24
 */
public class SinglePattern {
    public volatile static SinglePattern singlePattern;
    public SinglePattern(){}
    public static SinglePattern getInstance() {
        if(singlePattern == null) {
            synchronized(SinglePattern.class) {
                if(singlePattern == null) {
                    singlePattern =  new SinglePattern();
                }
            }
        }
        return  singlePattern;
    }
}
